package com.wfx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wfx.entity.ViewCatTpl;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

/**
 * <p>
 * VIEW Mapper 接口
 * </p>
 *
 * @author zhu
 * @since 2021-01-22
 */
public interface ViewCatTplMapper extends BaseMapper<ViewCatTpl> {

    @Delete("DELETE FROM wxb_goods_cat WHERE id = #{id}")
    int delCat (String id);

    @Insert("insert into wxb_goods_cat () values (#{viewCatTpl})")
    public int saveCat(ViewCatTpl viewCatTpl);
}
